package com.helloworld.springcloud.service.fallback;


import com.helloworld.springcloud.service.PaymentHystrixService;
import org.springframework.stereotype.Component;


/**
 * Copyright (C), XXX 软件公司
 * FileName: PaymentFallbackHystrixService
 * Author:   sisyphus
 * Date:     2021/7/23
 * Description:
 */
@Component   //将fallback接口添加到容器中
public class PaymentFallbackHystrixService implements PaymentHystrixService {

    @Override
    public String paymentInfo_OK(Integer id) {
        return "-------PaymentFallbackService fall back-paymentInfo_OK,o(╥﹏╥)o";
    }

    @Override
    public String paymentInfo_ERROR(Integer id) {
        return "-------PaymentFallbackService fall back-paymentInfo_TimeOut,o(╥﹏╥)o";
    }
}

